﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DataModel.Models;

namespace DataModel.Managers
{
    public class ImportManager
    {
        private readonly UniversityPortalEntities _entityModel;

        public ImportManager()
        {
            _entityModel = new UniversityPortalEntities();
        }

        public void LoadLessons(string filename)
        {
            _entityModel.ExecuteStoreCommand(@"EXEC [dbo].[ImportLessons] @filename = {0}",filename);
        }
    }
}
